using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Camalon.Drawing.Shapes
{
	[ToolboxItem(true)]
	public class Ellipse : Shape
	{

//		public Ellipse(System.ComponentModel.IContainer container):this()
//		{
//			///
//			/// Required for Windows.Forms Class Composition Designer support
//			///
//			container.Add(this);
//
//		}

		public Ellipse():base( new Rectangle( Point.Empty, new Size( 300,200)))
		{
		}


		protected override GraphicsPath MakePath(RectangleF bounds)
		{
//			bounds.X +=30;
//			bounds.Y+=30;
			GraphicsPath path = new GraphicsPath();
			path.StartFigure();
			path.AddEllipse(bounds);
//			RectangleF b = bounds;
//			b.Inflate( -20,-20);
//			path.AddEllipse( b );
//			b.Inflate( -20,-20);
//			path.AddEllipse( b );

			
			
			path.CloseFigure();
			return path;
		}

	}
}
